package com.lyn.tool;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import com.lyn.mmkvPlus.MMKVPlus;
import com.lyn.tool.utils.CrashUtil;
import com.lyn.tool.utils.FileUtil;

/**
 * @author Lyn
 * @date 2022/5/19
 * @desc
 */
public class App extends Application {

    @SuppressLint("StaticFieldLeak")
    public static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        MMKVPlus.getInstance().initialize(context);
        CrashUtil.getInstance().init();
        FileUtil.getInstance().init(context);
    }
}
